package com.hsnn.medstgmini.settlement.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hsnn.medstgmini.util.ParseNumber;
/**
 * 
 *@category 结算单
 *@author 邱磊
 *@date 2015年7月22日 上午10:22:13
 */
@Entity
@Table(name = "set_settlement")
public class SetSettlement {
	private String settlementId;
	private String settlementCode;
	private String settlementName;
	private Integer settlementType;
	private String orgId;
	private Integer totalOrders;
	private Double totalAmount;
	private String totalAmountStr;
	private Date createDatetime;
	private String createUser;
	private String remarks;
	private String submitUser;
	private Date submitDatetime;
	private Integer status;
	private Integer payStatus;
	private Date auditDatetime;
	private String auditUser;
	private String auditRemark;
	private Date reauditDatetime;
	private String reauditUser;
	private String reauditRemark;
	private Date updDatetime;
	private String updUser;
	@Column(name="pay_status")
	public Integer getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}
	@Id
	@Column(name="settlement_id")
	public String getSettlementId() {
		return settlementId;
	}
	@Column(name="settlement_code")
	public String getSettlementCode() {
		return settlementCode;
	}
	@Column(name="settlement_name")
	public String getSettlementName() {
		return settlementName;
	}
	@Column(name="settlement_type")
	public Integer getSettlementType() {
		return settlementType;
	}
	@Column(name="org_id")
	public String getOrgId() {
		return orgId;
	}
	@Column(name="total_orders")
	public Integer getTotalOrders() {
		return totalOrders;
	}
	@Column(name="total_amount")
	public Double getTotalAmount() {
		return totalAmount;
	}
	@Column(name="create_datetime")
	public Date getCreateDatetime() {
		return createDatetime;
	}
	@Column(name="create_user")
	public String getCreateUser() {
		return createUser;
	}
	@Column(name="remarks")
	public String getRemarks() {
		return remarks;
	}
	@Column(name="submit_user")
	public String getSubmitUser() {
		return submitUser;
	}
	@Column(name="submit_datetime")
	public Date getSubmitDatetime() {
		return submitDatetime;
	}
	@Column(name="status")
	public Integer getStatus() {
		return status;
	}
	@Column(name="audit_datetime")
	public Date getAuditDatetime() {
		return auditDatetime;
	}
	@Column(name="audit_user")
	public String getAuditUser() {
		return auditUser;
	}
	@Column(name="audit_remark")
	public String getAuditRemark() {
		return auditRemark;
	}
	@Column(name="reaudit_datetime")
	public Date getReauditDatetime() {
		return reauditDatetime;
	}
	@Column(name="reaudit_user")
	public String getReauditUser() {
		return reauditUser;
	}
	@Column(name="reaudit_remark")
	public String getReauditRemark() {
		return reauditRemark;
	}
	@Column(name="upd_datetime")
	public Date getUpdDatetime() {
		return updDatetime;
	}
	@Column(name="upd_user")
	public String getUpdUser() {
		return updUser;
	}
	
	@Transient
	public String getTotalAmountStr() {
		if (totalAmount != null) {
			totalAmountStr = ParseNumber.toStrDecimal(totalAmount);
		}
		return totalAmountStr;
	}
	public void setTotalAmountStr(String totalAmountStr) {
		this.totalAmountStr = totalAmountStr;
	}
	public void setSettlementId(String settlementId) {
		this.settlementId = settlementId;
	}
	public void setSettlementCode(String settlementCode) {
		this.settlementCode = settlementCode;
	}
	public void setSettlementName(String settlementName) {
		this.settlementName = settlementName;
	}
	public void setSettlementType(Integer settlementType) {
		this.settlementType = settlementType;
	}
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	public void setTotalOrders(Integer totalOrders) {
		this.totalOrders = totalOrders;
	}
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}
	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public void setSubmitUser(String submitUser) {
		this.submitUser = submitUser;
	}
	public void setSubmitDatetime(Date submitDatetime) {
		this.submitDatetime = submitDatetime;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public void setAuditDatetime(Date auditDatetime) {
		this.auditDatetime = auditDatetime;
	}
	public void setAuditUser(String auditUser) {
		this.auditUser = auditUser;
	}
	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}
	public void setReauditDatetime(Date reauditDatetime) {
		this.reauditDatetime = reauditDatetime;
	}
	public void setReauditUser(String reauditUser) {
		this.reauditUser = reauditUser;
	}
	public void setReauditRemark(String reauditRemark) {
		this.reauditRemark = reauditRemark;
	}
	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	
}